import request from "../utils/request.js"

//套餐列表
export const getListApi = () => request("user/topupList")
//开通会员
export const getOpenVipApi = (data) => request("user/openVip",{data})

//我的收藏
export const getCollectApi = (data) => request("user/getcollect",{data})
//切换收藏状态
export const changeCollectApi = (data) => request("user/collect",{data,method:"POST"})

//我的点赞
export const getMyLikesApi = (data) => request("user/mylike",{data,method:"POST"})

//浏览餐品
export const getRecordApi = (data) => request("user/record",{data,method:"POST"})
//我的浏览记录
export const getMyRecordApi = (data) => request("user/getrecord",{data})